import { MockMethod } from 'vite-plugin-mock';

export default [
    // 分页获取角色列表
    {
        url: '/mock/api/roles/list',
        method: 'get',
        response() {
            return {
                code: '000000',
                data: {
                    list: [
                        {
                            permissionList: {
                                checkedKeys: [
                                    '655db4a4f10762608048caf4',
                                    '655db556f10762608048cb02',
                                    '655dc53ed4dc6d6fda15dbad',
                                    '655dc67ed4dc6d6fda15dbc7',
                                    '655dc68ad4dc6d6fda15dbcb',
                                    '655db5a8f10762608048cb0a',
                                    '655dc69bd4dc6d6fda15dbcf',
                                    '655dc6a5d4dc6d6fda15dbd3',
                                    '655dc6afd4dc6d6fda15dbd7',
                                    '655dbb0011c02c8597dce710',
                                    '655dc6c7d4dc6d6fda15dbdb',
                                    '655dc6d3d4dc6d6fda15dbdf',
                                    '655dc6ddd4dc6d6fda15dbe3',
                                    '655dbbc411c02c8597dce720',
                                    '655dc6f4d4dc6d6fda15dbe7',
                                    '655dc6fdd4dc6d6fda15dbeb',
                                    '655dc708d4dc6d6fda15dbef',
                                    '655dbc4d11c02c8597dce72c',
                                    '655dc735d4dc6d6fda15dbf6',
                                    '655dc74cd4dc6d6fda15dbfe',
                                    '655dbc7911c02c8597dce734'
                                ],
                                halfCheckedKeys: [
                                    '655db45ff10762608048caec',
                                    '655db520f10762608048cafa',
                                    '655db546f10762608048cafe',
                                    '655db59bf10762608048cb06',
                                    '655db5c7f10762608048cb0e',
                                    '655dbbb911c02c8597dce71c',
                                    '655dbc1e11c02c8597dce724',
                                    '655dbc3811c02c8597dce728',
                                    '655dbc6c11c02c8597dce730'
                                ]
                            },
                            roleId: '655dbedb11c02c8597dce76a',
                            roleName: '超级管理员',
                            remark: '超级管理员',
                            createId: '1000002',
                            updateTime: '2023-12-22T08:23:39.918Z',
                            createTime: '2023-12-22T08:23:39.918Z'
                        },
                        {
                            permissionList: {
                                checkedKeys: [
                                    '655db4a4f10762608048caf4',
                                    '655db556f10762608048cb02',
                                    '655dc53ed4dc6d6fda15dbad',
                                    '655dc67ed4dc6d6fda15dbc7',
                                    '655dc68ad4dc6d6fda15dbcb',
                                    '655db5a8f10762608048cb0a',
                                    '655dc69bd4dc6d6fda15dbcf',
                                    '655dc6a5d4dc6d6fda15dbd3',
                                    '655dc6afd4dc6d6fda15dbd7',
                                    '655dbb0011c02c8597dce710',
                                    '655dc6c7d4dc6d6fda15dbdb',
                                    '655dc6d3d4dc6d6fda15dbdf',
                                    '655dc6ddd4dc6d6fda15dbe3',
                                    '655dbbc411c02c8597dce720',
                                    '655dc6f4d4dc6d6fda15dbe7',
                                    '655dc6fdd4dc6d6fda15dbeb',
                                    '655dc708d4dc6d6fda15dbef',
                                    '655dbc4d11c02c8597dce72c',
                                    '655dc735d4dc6d6fda15dbf6',
                                    '655dc74cd4dc6d6fda15dbfe',
                                    '655dbc7911c02c8597dce734'
                                ],
                                halfCheckedKeys: [
                                    '655db45ff10762608048caec',
                                    '655db520f10762608048cafa',
                                    '655db546f10762608048cafe',
                                    '655db59bf10762608048cb06',
                                    '655db5c7f10762608048cb0e',
                                    '655dbbb911c02c8597dce71c',
                                    '655dbc1e11c02c8597dce724',
                                    '655dbc3811c02c8597dce728',
                                    '655dbc6c11c02c8597dce730'
                                ]
                            },
                            roleId: '655dbedb11c02c8597dce76b',
                            roleName: '管理员',
                            remark: '管理员',
                            createId: '1000002',
                            updateTime: '2024-12-22T08:23:39.918Z',
                            createTime: '2024-11-22T08:23:39.918Z'
                        },
                        {
                            permissionList: {
                                checkedKeys: [
                                    '655db4a4f10762608048caf4',
                                    '655db556f10762608048cb02',
                                    '655dc53ed4dc6d6fda15dbad',
                                    '655dc67ed4dc6d6fda15dbc7',
                                    '655dc68ad4dc6d6fda15dbcb',
                                    '655db5a8f10762608048cb0a',
                                    '655dc69bd4dc6d6fda15dbcf',
                                    '655dc6a5d4dc6d6fda15dbd3',
                                    '655dc6afd4dc6d6fda15dbd7',
                                    '655dbb0011c02c8597dce710',
                                    '655dc6c7d4dc6d6fda15dbdb',
                                    '655dc6d3d4dc6d6fda15dbdf',
                                    '655dc6ddd4dc6d6fda15dbe3',
                                    '655dbbc411c02c8597dce720',
                                    '655dc6f4d4dc6d6fda15dbe7',
                                    '655dc6fdd4dc6d6fda15dbeb',
                                    '655dc708d4dc6d6fda15dbef',
                                    '655dbc4d11c02c8597dce72c',
                                    '655dc735d4dc6d6fda15dbf6',
                                    '655dc74cd4dc6d6fda15dbfe',
                                    '655dbc7911c02c8597dce734'
                                ],
                                halfCheckedKeys: [
                                    '655db45ff10762608048caec',
                                    '655db520f10762608048cafa',
                                    '655db546f10762608048cafe',
                                    '655db59bf10762608048cb06',
                                    '655db5c7f10762608048cb0e',
                                    '655dbbb911c02c8597dce71c',
                                    '655dbc1e11c02c8597dce724',
                                    '655dbc3811c02c8597dce728',
                                    '655dbc6c11c02c8597dce730'
                                ]
                            },
                            roleId: '655dbedb11c02c8597dce76c',
                            roleName: '开发人员',
                            remark: '开发人员',
                            createId: '1000002',
                            updateTime: '2024-12-22T08:23:39.918Z',
                            createTime: '2024-11-22T08:23:39.918Z'
                        },
                        {
                            permissionList: {
                                checkedKeys: [
                                    '655dbc4d11c02c8597dce72c',
                                    '655dc735d4dc6d6fda15dbf6',
                                    '655dc74cd4dc6d6fda15dbfe',
                                    '655dbc7911c02c8597dce734'
                                ],
                                halfCheckedKeys: [
                                    '655dbc1e11c02c8597dce724',
                                    '655dbc3811c02c8597dce728',
                                    '655dbc6c11c02c8597dce730'
                                ]
                            },
                            roleId: '655dbedb11c02c8597dce76d',
                            roleName: '普通用户',
                            remark: '普通用户',
                            createId: '1000002',
                            updateTime: '2024-12-22T08:23:39.918Z',
                            createTime: '2024-11-22T08:23:39.918Z'
                        }
                    ],
                    page: {
                        pageNum: 1,
                        pageSize: 10,
                        total: 8
                    }
                },
                msg: 'success'
            };
        }
    },
    // 获取所有角色列表
    {
        url: '/mock/api/roles/all/list',
        method: 'get',
        response() {
            return {
                code: '000000',
                data: [
                    {
                        roleId: '655dbedb11c02c8597dce76a',
                        roleName: '超级管理员'
                    },
                    {
                        roleId: '655dbedb11c02c8597dce76b',
                        roleName: '管理员'
                    },
                    {
                        roleId: '655dbedb11c02c8597dce76c',
                        roleName: '开发人员'
                    },
                    {
                        roleId: '655dbedb11c02c8597dce76d',
                        roleName: '普通用户'
                    }
                ],
                msg: 'success'
            };
        }
    },
    // 创建角色
    {
        url: '/mock/api/roles/create',
        method: 'post',
        response() {
            return {
                code: '000000',
                data: '',
                msg: 'success'
            };
        }
    },
    // 编辑角色
    {
        url: '/mock/api/roles/edit',
        method: 'post',
        response() {
            return {
                code: '000000',
                data: '',
                msg: 'success'
            };
        }
    },
    // 删除角色
    {
        url: '/mock/api/roles/delete',
        method: 'post',
        response() {
            return {
                code: '000000',
                data: '',
                msg: 'success'
            };
        }
    },
    // 设置角色权限
    {
        url: '/mock/api/roles/update/permission',
        method: 'post',
        response() {
            return {
                code: '000000',
                data: '',
                msg: 'success'
            };
        }
    }
] as MockMethod[];
